package com.objetdirect.gwt.umlapi.client.emul.impl;

import com.objetdirect.gwt.umlapi.client.emul.def.Font;
import com.objetdirect.gwt.umlapi.client.emul.def.GraphicObject;
import com.objetdirect.gwt.umlapi.client.emul.def.Text;

public class TatamiText implements Text {

	private com.objetdirect.tatami.client.gfx.Text _member;
 
	public TatamiText(String text) {
		_member = new com.objetdirect.tatami.client.gfx.Text(text);
	}

	public TatamiText(GraphicObject aGraphicalObject) {
		com.objetdirect.tatami.client.gfx.GraphicObject aGraphicObject =  (com.objetdirect.tatami.client.gfx.GraphicObject)aGraphicalObject.getInnerObject();
		_member = (com.objetdirect.tatami.client.gfx.Text)aGraphicObject;
	}
	@Override
	public Object getInnerObject() 
	{
		 
		return _member;
	}

	@Override
	public int getHeight() 
	{
		return (int) _member.getHeight();
	}

	@Override
	public void translate(int x, int i) {
		_member.translate(x, i);
	}

	@Override
	public void setFont(Font font) {
		_member.setFont((com.objetdirect.tatami.client.gfx.Font)font.getInnerObject());
		
	}

	@Override
	public int getWidth() {
		 
		return (int) _member.getWidth();
	}

	@Override
	public int getX() {
		return (int) _member.getX();
	}

	@Override
	public int getY() {
		return (int) _member.getY();
	}
	 

}
